/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.coupon.repository;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.wealth.coupon.entity.Coupon;

import iaas.repository.BaseRepository;


/**
 * @author chan
 * @version 1.0
 * @since 1.0
 */
 
@Repository
public interface CouponDao extends BaseRepository<Coupon, Long> ,JpaSpecificationExecutor<Coupon>{
		
		/** 通过唯一标识查询 */
		public Coupon findByUid(String uid);
		
		/** 通过批次模式查询，优惠券批次模式不等于纸质模式，这样的批次有且只有一个 */
		public Coupon findByMode(Integer mode);
		
		
}
